import Vue from 'vue'
import Router from 'vue-router'
import Login from "../view/Login";
import Home from "../view/Home";
import Index from "../page/Index";
import SingerManage from "../page/SingerManage";
import SongManage from "../page/SongManage";
import UserManage from "../page/UserManage";
import Aside from "../view/Aside";
import Header from "../view/Header";
import SongListManage from "../page/SongListManage";
import ListSongManage from "../page/ListSongManage";
import CollectionManage from "../page/CollectionManage";
import CommentManage from "../page/CommentManage";
import Regist from "../view/Regist";
import ArticleManage from "../page/ArticleManage";
import ArticleEdit from "../page/ArticleEdit";
import TagManage from "../page/TagManage";
import SourceManage from "../page/SourceManage";
import VideoManage from "../page/VideoManage";
import UserSourceManage from "../page/UserSourceManage";
import IndexLogin from "../view/IndexLogin";
import VideoStyleManage from "../page/VideoStyleManage";
import StudySourceStyleManage from "../page/StudySourceStyleManage";
Vue.use(Router)


export default new Router({
  routes: [
    {
      path: '/',
      name: 'IndexLogin',
      component: IndexLogin
    },
    {
      path:'/Home',
      name:'Home',
      component: Home,
      children:[
        {
          path:'/Header',
          name:'Header',
          component:Header
        },
        {
          path:'/Aside',
          name:'Aside',
          component:Aside
        },
        {
          path:'/Index',
          name:'Index',
          component:Index
        },
        {
          path:'/SingerManage',
          name: 'SingerManage',
          component: SingerManage
        },
        {
          path:'/SongListManage',
          name: 'SongListManage',
          component: SongListManage
        },
        {
          path:'/ListSongManage',
          name:'ListSongManage',
          component:ListSongManage
        },
        {
          path:'/SongManage',
          name: 'SongManage',
          component: SongManage
        },
        {
          path:'/UserManage',
          name: 'UserManage',
          component: UserManage
        },
        {
          path:'/collectionManage',
          name:'collectionManage',
          component:CollectionManage
        },
        {
          path:'/commentManage',
          name:'commentManage',
          component:CommentManage
        },
        {
          path:"/articleManage",
          name:"articleManage",
          component:ArticleManage
        },
        {
          path:'/tagManage',
          name:'tagManage',
          component:TagManage
        },
        {
          path:'/sourceManage',
          name:'sourceManage',
          component:SourceManage
        },
        {
          path:'/videoManage',
          name:'videoManage',
          component:VideoManage
        },
        {
          path:'/userSourceManage',
          name:'userSourceManage',
          component:UserSourceManage
        },
        {
          path:'/videoStyleManage',
          name:'videoStyleManage',
          component:VideoStyleManage,
        },
        {
          path:'/studySourceStyleManage',
          name:'studySourceStyleManage',
          component:StudySourceStyleManage
        }
      ]
    },
    {
      path:'/SongAudio',
      name:'SongAudio',
      component:SongManage
    },
    {
      path:'/regist',
      name:'regist',
      component:Regist
    },
    {
      path:'/articleEdit',
      name:'articleEdit',
      component:ArticleEdit
    },
  ]
})
